<script setup>
import { ref } from "vue";
import login from "./login.vue";
import mine from "./mine.vue";

//登录状态
const loginState = ref(localStorage.getItem("loginState") || "false");
</script>

<template>
  <div>
    <login
      v-if="loginState == 'false'"
      @loginSuccess="loginState = 'true'"
    ></login>
    <mine v-if="loginState == 'true'"></mine>
  </div>
</template>

<style scoped lang="less"></style>
